Skip to content

对话输入框升级为刻蚀纸面卡片质感 - #307

Merged
taekchef merged 1 commit into
mainfrom
codex/agent-composer-texture
Aug 22, 2026
Merged

taekchef merged 1 commit into
mainfrom
codex/agent-composer-texture

Conversation

@taekchef

Copy link
Copy Markdown
Collaborator

实际改动

  • Theme.swift 新增 weibeiComposerCard(cornerRadius:focused:showsChrome:):把应用自家 weibeiInputSurface 的刻蚀语言放大到对话输入卡片——纸面渐变感分层填充 + 极薄材质层、顶部 1px 内高光、底部内阴影、发丝外框,投影改为双层(贴地 2pt + 环境 10pt,卡片“坐”在线程纸上),聚焦时描边换成与全部其他输入框统一的链接色。
  • NotesAgentView.swift:AgentComposerField 原来的平涂底色 + 单层描边/投影链替换为该修饰符,一处调用;圆角、伸缩、行为全部不变。

未做内容

冻结文件预算

  • NotesAgentView.swift 净变化约 -16 行(28 行改动,替换为 4 行调用),远低于 +50 行/PR 预算。
  • 不占用共享核心文件(ContentView.swift、WorkspaceStore.swift 等均未触碰)。

验证

  • swift build 通过。
  • 离屏渲染新旧对比:新卡片有明确材质层次(顶部内高光/底部内阴影/贴地投影),聚焦态淡蓝描边,无色带、双边缘等瑕疵,形状与旧版一致。
  • CI 待跑;本地 staged 包冒烟合并后进行。

轻量冒烟

  • 合并后从干净 main 构建候选包:对话输入框观感、聚焦描边、发送/停止按钮回归。

- Theme 新增 weibeiComposerCard:在原形状上叠加纸面分层——顶部内高光、
  底部内阴影、发丝外框、极薄材质层,投影改双层(贴地 2pt + 环境 10pt),
  聚焦描边用应用统一的链接色,与 weibeiInputSurface 的刻蚀语言一致
- AgentComposerField 的平涂底色+单层描边/投影换成该修饰符,形状不变
@taekchef
taekchef marked this pull request as ready for review August 22, 2026 04:45
@taekchef
taekchef merged commit 4bfa639 into main Aug 22, 2026
2 checks passed
@taekchef
taekchef deleted the codex/agent-composer-texture branch August 22, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant